#!/usr/bin/python3
# coding=utf-8
#
# Copyright (C) 2023-2024. Huawei Technologies Co., Ltd. All rights reserved.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# ===============================================================================

import numpy as np
import torch
from torch.nn import functional as F

def gen_golden_data_simple():
    input_src = (torch.rand(8, 2048) * (10 - (-10)) + (-10)).to(dtype=torch.float32)
    golden = np.full(input_src.shape, 4.8, dtype=np.float32)

    input_src.numpy().tofile("./input/input_src.bin")
    golden.tofile("./output/golden.bin")


if __name__ == "__main__":
    gen_golden_data_simple()
